package cn.ante.ymcc.feign;

import cn.ante.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseFeignClient {
    @RequestMapping(value = "/courseUserLearn/{loginId}/{courseId}",method = RequestMethod.GET)
    JSONResult checkMediaPermission(@PathVariable("loginId") Long loginId,@PathVariable("courseId") Long courseId);

    @RequestMapping(value="/course/info/{courseIds}",method= RequestMethod.GET)
    JSONResult courseOrderInfo(@PathVariable("courseIds") String courseIds);
}
